package com.wlz;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * Description:
 *      在启动类上添加@EnableFeignClients注解来启用Feign的客户端功能
 *
 *    启动eureka-service，两个user-service，feign-service服务，启动后注册中心显示如下
 *
 * @author JourWon
 * @date 2019/12/20 18:31
 */

@EnableFeignClients
@EnableDiscoveryClient
@SpringBootApplication
public class FeignServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(FeignServiceApplication.class, args);
    }

}
